package com.xs.sort;

/**
 * @author xs
 * date 2018/8/16 14:08
 */
public class SortFactory {

	public static Sort createSort(SortEnum sortEnum) {
		Sort sort = null;
		switch (sortEnum) {
			case BUBBLE_SORT:
				sort = new BubbleSort();
				break;
			case SELECTION_SORT:
				sort = new SelectionSort();
				break;
			default:
				break;
		}
		return sort;
	}


}
